package day06.Lambda;

import org.junit.Test;

public class Person {
    public Person(){
        System.out.println("无参构造方法----person()");
    }

    public void hello(){
        System.out.println("hello");
    }

    @Test
    public void test(){
        PersonInterface personInterface = Person::new;
        personInterface.method().hello();
    }
}
